import request from '@/utils/request'

var basePath = '/eqt/eqtClass/'

export function listEqtClass(query) {
  return request({
    url: basePath + 'list',
    method: 'get',
    params: query
  })
}

export function createEqtClass(data) {
  return request({
    url: basePath + 'create',
    method: 'post',
    data
  })
}

export function readEqtClass(data) {
  return request({
    url: basePath + 'read/' + data.id,
    method: 'get'
  })
}

export function updateEqtClass(data) {
  return request({
    url: basePath + 'update',
    method: 'post',
    data
  })
}

export function deleteEqtClass(data) {
  return request({
    url: basePath + 'delete/' + data.fclassstno,
    method: 'delete'
  })
}

export function eqtClassOptions(query) {
  return request({
    url: basePath + 'options',
    method: 'get',
    params: query
  })
}
